package cn.iune.erp.inventory;

import java.text.ParseException;
import java.util.List;
import com.alibaba.fastjson.JSONObject;

import cn.iune.common.base.IBizDataIface;

public interface IStorageLedgerService extends IBizDataIface {

	List<StorageLedger> getAll();

	StorageLedger getByID(String fID);

	void delete(String fID);

	StorageLedger getByNo(String recordNo, String enterpriseNo);
	
	JSONObject save(JSONObject object) throws Throwable;

	int confirm(String fID);

	int active(String fID);

	int close(String fID);

	int open(String fID);

	int unAgree(String fID);

	//更新明细表最大流水号
	int updateMaxDetailNo(String fID, int maxDetailNo);

	void insert(StorageLedger obj);

	void update(StorageLedger obj);

	int agreeIt(String fID, String usercode, String username, String userId);

	StorageLedger packing(String billType, String billTypeName, String systemCode, int flowType, String revOpay,
			int direction, String costingCode, String autoCode, String origin, String originName, String billNo,
			String cUsercode, String cUsername, String userId, String enterpriseNo, String enterpriseName);

	JSONObject saveDetail(JSONObject object) throws ParseException;

	JSONObject newDataDetail(JSONObject param);

	JSONObject queryDataDetail(JSONObject param);

	JSONObject querySimple(JSONObject param);






}